package com.quanxiaoha.xiaohashu.search.biz.controller;/**
 * @author Myj
 * @date 2025/8/18
 */

import com.quanxiaoha.framework.biz.operationlog.aspect.ApiOperationLog;
import com.quanxiaoha.xiaohashu.search.biz.service.ExtDictService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *@author: myj
 *@createtime: 2025-08-18
 *@description: 热更新拓展词典
 *@version: 1.0
 */
@RestController
@RequestMapping("/search")
@Slf4j
public class ExtDictController {
    @Resource
    private ExtDictService extDictService;

    @GetMapping("/ext/dict")
    @ApiOperationLog(description = "热更新词典")
    public ResponseEntity<String> extDict() {
        return extDictService.getHotUpdateExtDict();
    }
}
